package com.yuma.tingshu.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuma.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuma.tingshu.vo.order.OrderInfoVo;
import com.yuma.tingshu.vo.order.TradeVo;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfoVo trade(TradeVo tradeVo);

    Map<String, Object> submitOrder(OrderInfoVo orderInfoVo);

    OrderInfo getOrderInfo(String orderNo);

    Page<OrderInfo> findUserPage(Integer page, Integer limit);
}
